/**
 * There are <a href="https://github.com/thinkgem/jeesite">JeeSite</a> code generation
 */
package com.chlitina.store.modules.expert.entity;

import java.io.Serializable;

/**
 * 澶嶅悎涓婚敭
 * @author liujiang
 * @version 2013-06-07
 */
public class ExamParameterPK implements Serializable{
	
	private static final long serialVersionUID = 1L;
	private CustomerExam customerExam; // 鑼冨洿
	private Parameter parameter; // 鑼冨洿
	
	public ExamParameterPK() {
		
	}
	
	public ExamParameterPK(CustomerExam customerExam, Parameter parameter) {
		this.customerExam = customerExam;
		this.parameter = parameter;
	}
	
	public CustomerExam getCustomerExam() {
		return customerExam;
	}

	public void setCustomerExam(CustomerExam customerExam) {
		this.customerExam = customerExam;
	}

	public Parameter getParameter() {
		return parameter;
	}

	public void setParameter(Parameter parameter) {
		this.parameter = parameter;
	}
	
	@Override
	public int hashCode() {
		return this.customerExam.hashCode() + this.parameter.hashCode();
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		final ExamParameterPK other = (ExamParameterPK) obj;
		if (customerExam.getId() == other.getCustomerExam().getId() &&
				parameter.getId() == other.getParameter().getId()) {
			return true;
		} 
		return false;
	}
}


